.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 4em;
    background-color: #f5f5f5;
    padding:20px;
}